<template>
	<view class="container">
		<view class="bg">
			<view class="navtitle">
				<view class="left" @click="back"></view>
				<view class="title">
					导航
				</view>
			</view>
		</view>
		<view class="card" style="margin-top: -220rpx;">
			<uni-card style="border-radius: 20rpx;">
				<view class="map">
					<map style="width: 100%; height: 400px" :latitude="latitude" :longitude="longitude">
					</map>
				</view>
				<view class="cbottom">
					<view class="left">
						<view class="top">
							车百事汽车生活馆
						</view>
						<view class="bottom">
							山阳区人民路与解放路交叉口
						</view>
					</view>
					<view class="right">
						<u-button shape="circle">导航</u-button>
					</view>
				</view>
			</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 1, // 使用 marker点击事件 需要填写id
				title: "map",
				latitude: 39.909,
				longitude: 116.39742,
			}
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				})
			},
		}
	}
</script>

<style scoped>
	.bg {
		width: 100%;
		height: 380rpx;
		background-color: #3082fb;
		overflow: hidden;
	}

	.navtitle {
		display: flex;
		margin-top: 40rpx;
		/* border: 1px solid red; */
		align-items: center;
	}

	.navtitle .left {
		width: 28rpx;
		height: 28rpx;
		margin-left: 20rpx;
		border-left: 2px solid white;
		border-bottom: 2px solid white;
		transform: rotate(45deg);
	}

	.bg .title {
		color: #e0ebfd;
		font-size: 40rpx;
		margin-left: 260rpx;
		font-family: 'Times New Roman', Times, serif;
		font-weight: 600;
	}
	.cbottom{
		width: 100%;
		margin-top: 20rpx;
		display: flex;
		align-items: center;
		/* border: 1px solid red; */
	}
	.top{
		font-size: 30rpx;
		font-weight: bold;
	}
	.cbottom .bottom{
		margin-top: 20rpx;
		font-size: 26rpx;
		font-weight: 600;
	}
	.left{
		/* border: 1px solid red; */
	}
	.right{
		margin-left: 140rpx;
		/* border: 1px solid red; */
	}
	.u-button{
		height: 80rpx;
		width: 140rpx;
		background-color: #3789ff;
		color: #cdddfa;
	}
</style>